package com.schoolvisitors.controller;

import com.schoolvisitors.dto.CreateRoomDto;
import com.schoolvisitors.entity.Floor;
import com.schoolvisitors.response.ResultBody;
import com.schoolvisitors.service.RoomService;
import jakarta.validation.Valid;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/api/v1")
public class RoomController {

    private final RoomService roomService;

    public RoomController(RoomService roomService) {
        this.roomService = roomService;
    }
//
//    @PostMapping("/createRoom")
//    public ResultBody createRoom(@RequestBody @Valid CreateRoomDto createRoomDto) {
//        roomService.createRoom(createRoomDto);
//        return ResultBody.success();
//    }
//
//    @PostMapping("/removeRoom")
//    public ResultBody removeRoom(@RequestBody @Valid CreateRoomDto createRoomDto) {
//
//        return ResultBody.success();
//    }

    @PostMapping("/getRooms")
    public ResultBody getRooms(@RequestBody @Valid CreateRoomDto createRoomDto) {

        return ResultBody.success();
    }

//    @GetMapping("/getFloors")
//    public ResultBody getFloors() {
//        List<Floor> floorList = roomService.getAllFloor();
//        return ResultBody.success(floorList);
//    }

}
